package com.chu.controller;

import com.chu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;

@Controller
public class UserController {
    @Autowired
    private UserService userService;
    @Transactional
    public void transferMoney(Integer addUserId,Integer subUserId,Integer money){
        userService.transferMoney(addUserId, subUserId, money);
    }
}
